package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description 景点评论实体类
 *
 * @author HZX
 * @date 2020/5/20 1:25
 */
public class SightComment implements Serializable {

    private String sightCommentId; // 景点评论id
    private String content; // 评论的内容
    private Integer likeNum; // 获得的点赞数
    private Integer starNum; // 评星的数量
    private Date createTime; // 评论时间

    private String sightId; // 景点id
    private Sight sight; // 景点对象

    private String userId; // 评论者id
    private User user; // 评论者对象

    List<CommentImg> commentImgs; // 该评论所对应的所有图片

    public SightComment() {
    }

    public SightComment(String content, Integer starNum, Date createTime, String sightId, String userId) {
        this.content = content;
        this.starNum = starNum;
        this.createTime = createTime;
        this.sightId = sightId;
        this.userId = userId;
    }

    public SightComment(String sightCommentId, String content, Integer likeNum, Integer starNum, Date createTime, String sightId, Sight sight, String userId, User user) {
        this.sightCommentId = sightCommentId;
        this.content = content;
        this.likeNum = likeNum;
        this.starNum = starNum;
        this.createTime = createTime;
        this.sightId = sightId;
        this.sight = sight;
        this.userId = userId;
        this.user = user;
    }

    public String getSightCommentId() {
        return sightCommentId;
    }

    public void setSightCommentId(String sightCommentId) {
        this.sightCommentId = sightCommentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSightId() {
        return sightId;
    }

    public void setSightId(String sightId) {
        this.sightId = sightId;
    }

    public Sight getSight() {
        return sight;
    }

    public void setSight(Sight sight) {
        this.sight = sight;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getStarNum() {
        return starNum;
    }

    public void setStarNum(Integer starNum) {
        this.starNum = starNum;
    }

    public List<CommentImg> getCommentImgs() {
        return commentImgs;
    }

    public void setCommentImgs(List<CommentImg> commentImgs) {
        this.commentImgs = commentImgs;
    }

    @Override
    public String toString() {
        return "SightComment{" +
                "sightCommentId='" + sightCommentId + '\'' +
                ", content='" + content + '\'' +
                ", likeNum=" + likeNum +
                ", starNum=" + starNum +
                ", createTime=" + createTime +
                ", sightId='" + sightId + '\'' +
                ", sight=" + sight +
                ", userId='" + userId + '\'' +
                ", user=" + user +
                ", commentImgs=" + commentImgs +
                '}';
    }
}
